package com.tv.cms.deviceInfo.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tv.cms.base.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * TODO
 *
 * @author
 * @date
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class DeviceInfo extends BaseModel {

    @TableId(value="id",type = IdType.AUTO)
    private Integer id;
    @Excel(name="mac地址")
    private String mac;
    @Excel(name="SN")
    private String sn;
    private Integer userModelId;
    private Integer modelInfoId;
    private Integer channelPkgId;
    private String bouquetIds;
    /**可用天数**/
    @Excel(name="套餐天数")
    private Integer expired;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expDate;
    private Integer type;
    private String authCode;
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-4")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    /**激活时间**/
    private Date activityTime;
    /**备注**/
    private String comment;
    /** 经销商**/
    private String operator;
    /**锁机时间**/
    private Date lockTime;
    /**是否锁机**/
    private Boolean lockMachine;
    @TableField(exist = false)
    private String modelInfoName;
    @TableField(exist = false)
    private String userModelName;
    @TableField(exist = false)
    private String channelPkgName;
    @TableField(exist = false)
    private String ids;
    private String lockOperator;
    private Integer payOrderInfoId;
    private Integer lineId;
}
